﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin.Master" AutoEventWireup="true"
    CodeBehind="company_edit.aspx.cs" Inherits="vdos.jobseeker.AdminCP.Company.company_edit" %>
<%@ Register Assembly="FredCK.FCKeditorV2" Namespace="FredCK.FCKeditorV2" TagPrefix="FCKeditorV2" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">   
    <link rel="Stylesheet" type="text/css" href="../Uploadify/CSS/uploadify.css" />
    <script type="text/javascript" src="../Uploadify/Scripts/jquery-1.3.2.min.js"></script>
    <script type="text/javascript" src="../Uploadify/Scripts/jquery.uploadify.js"></script>
    <script type="text/javascript">

        $(window).load(
    function () {
        $("#FileUploadDiv").html("<img  src=/FileUpload/Company/" + $(".cssLogoFilePath").val() + "    width=240 />");
        $("#<%=FileUpload1.ClientID %>").fileUpload({
            'uploader': '../Uploadify/Scripts/uploader.swf',
            'cancelImg': 'images/cancel.png',
            'buttonText': 'Browse Files',
            'script': 'CompanyUpload.ashx',
            'folder': 'uploads',
            'fileDesc': 'Adv Files(JPG, PNG, GIF)',
            'fileExt': '*.jpg;*.png;*.gif;',
            'sizeLimit': '500000000',
            'multi': true,
            'auto': true,
            'onComplete': function (event, ID, fileObj, response, data) {
                $(".cssLogoFilePath").val(response);
                $("#FileUploadDiv").html("<img  src=/Media/Company/" + $(".cssLogoFilePath").val() + "    width=240 />");
                $("#FileUploadDiv").show();
            }
        });
    }
);

    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <section id="content">
  <section class="container_12 clearfix">
    <section id="main" class="grid_12">
      <article>
        <div class="h1">Thêm mới công ty</div>
        
          <dl class="inline">

            <dt>
              <label >Tên công ty:</label>
            </dt>
            <dd>
              <input type="text"   class="big" id="CompanyName" runat="server" />
            </dd>
             <dt>
              <label >Giới thiệu công ty:</label>
            </dt>
            <dd>
              <FCKeditorV2:FCKeditor ID="CompanyDetail" runat="server" BasePath="~/fckeditor/" Height="300px" >
                </FCKeditorV2:FCKeditor>
            </dd>
            <dt>
              <label >Logo: </label>
            </dt>
            <dd>
              
              <input type="hidden" id="LogoFilePath" runat="server" class="cssLogoFilePath"   />
            
                            <asp:FileUpload ID="FileUpload1" runat="server" />
            </dd>
            <dt></dt>
            <dd><div id="FileUploadDiv" style="display:none;">
            </div></dd>
          </dl>
          <p>
          <input type="hidden" id="CompanyID" runat="server" />
          <asp:Button class="button big" style="width:auto;" Text="Cập nhật" ID="btnUpdate" runat="server" 
                  onclick="btnUpdate_Click"  />
          </p>
       
      </article>
    </section>
  </section>
</section>
</asp:Content>
